package com.atguigu.lease.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

@Getter
@Schema(description = "看房预约的状态枚举")
public enum AppointmentStatus implements BaseEnum {
    //1:待看房，2:已取消，3已看房， 4已过期
    WAIT(1,"待看房"),
    CANCEL(2,"已取消"),
    FINISH(3,"已看房"),
    EXPIRE(4,"已过期");

    @EnumValue
    @JsonValue
    private Integer code;
    private String name;

    private AppointmentStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
